package simulation;

/**
 * 观察者 实现设置的ObserverInterface接口
 *
 * @author ml
 * @create 2017-12-13--10:24
 */
public class ObserverOriginal implements ObserverInterface {
    public ObserverOriginal(LoginOriginal loginOriginal){
        loginOriginal.addObject(this);
    }
    @Override
    public void onSuccess(Object object) {

        System.out.println("登录成功 通知观察者了");
    }
}
